package seata.demo.common.feign;


import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import seata.demo.common.dto.CommodityDTO;
import seata.demo.common.response.ObjectResponse;

@FeignClient(value = "storage", path = "/storage")
public interface StorageServiceFeign {

    /**
     * 扣减库存
     */
    @ApiOperation("扣减库存")
    @PostMapping("/decreaseStorage")
    ObjectResponse decreaseStorage(@RequestBody CommodityDTO commodityDTO);
}
